#include <stdio.h>

int main(int argc, char const *argv[])
{
    int a[5]={9,6,8,1,3};
    int b = sizeof(a)/4;
    for (int i = 0; i < b; i++)
    {
        int max = 0;
        int num = 0;
        for (int j = 0; j < b-i; j++)
        {
            if(a[j]>a[max])max=j;
        }
       num = a[max];
       a[max] = a[b-1-i];
       a[b-1-i] = num;
    }
    for (int i = 0; i < b; i++)
    {
        printf("%d",a[i]);
        if(i<b-1) printf(";");
    }
    printf("\n");
    return 0;
}
